package com.ali.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 股票表
 * @TableName sys_stock
 */
@TableName(value ="sys_stock")
@Data
public class SysStock extends BaseEntityTwo  implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer stockId;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 股票代码
     */
    @JsonProperty("value")
    private String stockNo;

    /**
     * 股票数量
     */
    private String stockCount;

    /**
     * 股票成本
     */
    private BigDecimal stockPrice;

    /**
     * 股票总投入
     */
    private BigDecimal stockAllPrice;

    /**
     * 逻辑删除
     */
    private Integer delFlag;


    /**
     * 股票数量
     */
    @TableField(exist = false)
    private Integer userStockCount;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}